<!-- templates/bootstrap5/admin/login.html -->
<html lang="zh-cn">
<head>
    <title>导航网站 - 后台登录</title>
    <link href="{{ url_for('static', filename='bootstrap5/css/bootstrap.min.css') }}" rel="stylesheet">
    <link href="{{ url_for ('static', filename='bootstrap5/icons/font/css/bootstrap-icons.css') }}" rel="stylesheet"/>
    <style>
        body {
            min-height: 100vh;
            margin: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            background-size: cover;
            background-position: center;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: -1;
            background-image: url('/static/img/login-bg.png'); /* 替换为你的背景图路径 */
            background-size: cover;
            background-position: center;
            filter: blur(8px);
        }

        .login-card {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
            border: 1px solid rgba(255, 255, 255, 0.18);
            width: 100%;
            max-width: 400px;
        }

        .login-card h1 {
            color: #fff;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        }

        .form-control {
            background: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 10px;
        }

        .btn-primary {
            background: rgba(41, 128, 185, 0.9);
            border: none;
            width: 100%;
            border-radius: 10px;
            padding: 12px;
        }

        .btn-primary:hover {
            background: rgba(52, 152, 219, 0.9);
        }
    </style>
</head>

<body>
    <div class="login-card">
        <h1 class="mb-4 text-center">管理员登录</h1>
        <form method="post">
            <div class="mb-3">
                <label for="username" class="form-label">用户名</label>
                <input type="text" class="form-control" id="username" name="username" required>
            </div>

            <div class="mb-3">
                <label for="password" class="form-label">密码</label>
                <input type="password" class="form-control" id="password" name="password" required>
            </div>

            <button type="submit" class="btn btn-primary">登录</button>
        </form>
    </div>

    <script src="{{ url_for ('static', filename='bootstrap5/js/bootstrap.bundle.min.js') }}"></script>
</body>
</html>